package mspbots.data.sync;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Jay Yang
 */
@Data
@Builder
@AllArgsConstructor
public class ResultMessageModel {

    private MessageModelAction action;
    private JsonNode entity;
    private LocalDateTime sendTime;
    private Long tenantId;


    public enum MessageModelAction {
        ADD, DELETE, UPDATE
    }
}
